package groovyx;

import groovyx.gaelyk.GaelykTemplateServlet
import groovy.servlet.ServletBinding;

/**
 * Gaelyk template servlet with Spring support
 *
 * @author linux_china
 */
public class GaelykWithSpringTemplateServlet extends GaelykTemplateServlet {

  protected void setVariables(ServletBinding binding) {
    super.setVariables(binding);
    SpringContextLoaderListener.BEANS.each {key, value -> binding.setVariable(key, value)}
  }

}
